package com.mi.proxy;

import com.mi.proxy.NikeRetailCustomer.Location;

public class Test {

	public static void main(String[] args) {
		
		NikeCompany nikeCompany = new NikeCompany();
		ChinaNikeProxy chinaNikeProxy = new ChinaNikeProxy(nikeCompany, 0.95);
		JapanNikeProxy japanNikeProxy = new JapanNikeProxy(nikeCompany, 0.93);
		Shoes shoes = japanNikeProxy.provideShoes(new NikeRetailCustomer(Location.JAPAN, 1.0));
		System.out.println(shoes);
		
		Shoes shoes2 = chinaNikeProxy.provideShoes(new NikeRetailCustomer(Location.HUBEI,1.0));
		System.out.println(shoes2);
		
		HubeiNikeProxy hubeiNikeProxy = new HubeiNikeProxy(chinaNikeProxy);
		Shoes shoes3 = hubeiNikeProxy.provideShoes(new NikeRetailCustomer(Location.BEIJING,1.0));
		System.out.println(shoes3);
		
		Shoes shoes4 = hubeiNikeProxy.provideShoes(new NikeRetailCustomer(Location.HUBEI,1.0));
		System.out.println(shoes4);
		
		
		BeijingNikeProxy beijingNikeProxy = new BeijingNikeProxy(chinaNikeProxy);
		Shoes shoes5 = beijingNikeProxy.provideShoes(new NikeRetailCustomer(Location.HUBEI, 1.0));
		System.out.println(shoes5);
	}
}
